easy ways to implement dark mode html css

96

@media (prefers-color-scheme: dark) {
  body {
    background-color: black;
    color: white;
  }
}
<meta name="color-scheme" content="dark light">
<meta name="color-scheme" content="dark light">

Comments

Submit
0 Comments